﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using Mengsk.ERP.Orders;

namespace Mengsk.ERP.App.Orders
{
    class ShopConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            Shop shop = (Shop)value;
            if (shop == Shop.WANGGOU_MOSIGE)
            {
                return "网购 梦诗姬";
            }

            if (shop == Shop.WANGGOU_SHANGMEIQI)
            {
                return "网购 尚美琦";
            }

            if (shop == Shop.PAIPAI_YIMEIER)
            {
                return "拍拍 伊妹儿";
            }

            if (shop == Shop.TAOBAO_SHANGMEIQI)
            {
                return "淘宝 尚美琦";
            }

            if (shop == Shop.TMALL_MOSIGE)
            {
                return "天猫 梦诗姬";
            }

            return shop.ToString();
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
